/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const TencentCloudRouterMap = {
  id: 123,
  path: '/tencent',
  component: Layout,
  name: '腾讯云',
  redirect: '/tencent/customer',
  meta: {title: '腾讯云', icon: 'cloud2', power: 'tencent'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 124,
      path: 'customer',
      name: '我的客户',
      component: resolve => require(['@/views/plugins/tencentCloud/customer/index'], resolve),
      meta: {title: '我的客户', icon: 'customer', power: 'tencent.customer'}
    }, {
      id: 125,
      path: 'order',
      name: '客户订单',
      component: resolve => require(['@/views/plugins/tencentCloud/order/index'], resolve),
      meta: {title: '客户订单', icon: 'orderlist', power: 'tencent.order'}
    }, {
      id: 125,
      path: 'details',
      name: '订单详情',
      component: resolve => require(['@/views/plugins/tencentCloud/order/details'], resolve),
      meta: {title: '订单详情', power: 'tencent.order.details'},
      hidden: true
    }, {
      id: 267,
      path: 'pay',
      name: '代付订单',
      component: resolve => require(['@/views/plugins/tencentCloud/order/details'], resolve),
      meta: {title: '代付订单', power: 'tencent.order.pay'},
      hidden: true
    }, {
      id: 274,
      path: 'order/download',
      name: '导出记录',
      component: resolve => require(['@/views/plugins/tencentCloud/order/download'], resolve),
      meta: {title: '导出记录', power: 'tencent.order.download'},
      hidden: true
    }, {
      id: 267,
      path: 'order/analysis',
      name: '数据分析',
      component: resolve => require(['@/views/plugins/tencentCloud/order/analysis'], resolve),
      meta: {title: '数据分析', power: 'tencent.order.analysis'},
      hidden: true
    }, {
      id: 267,
      path: 'order/analysisOrder',
      name: '订单记录',
      component: resolve => require(['@/views/plugins/tencentCloud/order/analysisOrder'], resolve),
      meta: {title: '订单记录', power: 'tencent.order.analysisOrder'},
      hidden: true
    }, {
      id: 132,
      path: 'tencentOrders',
      name: '客户订单同步',
      component: resolve => require(['@/views/plugins/tencentCloud/order/tencentOrders'], resolve),
      meta: {title: '客户订单同步', icon: 'cloud2', power: 'tencent.orders.customerOrder'}
    }, {
      id: 256,
      path: 'partnerList',
      name: '业务员列表',
      component: resolve => require(['@/views/plugins/tencentCloud/partner/index'], resolve),
      meta: {title: '业务员列表', icon: 'cloud2', power: 'tencent.orders.partnerList'}
    }, {
      id: 276,
      path: 'business',
      name: '业务明细',
      component: resolve => require(['@/views/plugins/tencentCloud/business/index'], resolve),
      meta: {title: '业务明细', icon: 'cloud2', power: 'tencent.business'}
    }, {
      id: 131,
      path: 'customerPower',
      name: '代理商权限',
      component: resolve => require(['@/views/plugins/tencentCloud/permissions'], resolve),
      meta: {title: '代理商权限', icon: 'jurisdiction2', power: 'tencent.power'}
    }, {
      id: 131,
      path: 'userPower',
      name: '系统用户权限',
      component: resolve => require(['@/views/plugins/tencentCloud/permissions/user'], resolve),
      meta: {title: '系统用户权限', icon: 'jurisdiction2', power: 'tencent.userPower'}
    }, {
      id: 126,
      path: 'config',
      name: '腾讯云配置',
      component: resolve => require(['@/views/plugins/tencentCloud/config.vue'], resolve),
      meta: {title: '腾讯云配置', icon: 'steam', power: 'tencent.config'}
    }
  ]
}

export default TencentCloudRouterMap;
